<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:decorate template="/resources/template/modelo.xhtml">
        <ui:define name="centro">

            <h:form>
                <p:panel  header="Autor que será apagado:" style="margin-bottom:10px;">  

                    <h:panelGrid columns="2">

                        <h:outputText value="Id:" />
                        <h:outputText value="#{autorBean.autor.id}"></h:outputText>
                        <h:outputText value="Ultimo Nome:" />
                        <h:outputText value="#{autorBean.autor.ultimoNome}"></h:outputText>
                        <h:outputText value="Restante Nome:" />
                        <h:outputText value="#{autorBean.autor.restanteNome}"></h:outputText>
                        <h:outputText value="Instituicao:" />
                        <h:outputText value="#{autorBean.autor.instituicaoAutor.nome}"> </h:outputText>
                        <p:commandButton action="#{autorBean.removerAutor()}" value="Confirmar Remoção"  />
                        <p:commandButton action="/index" immediate="true" actionListener="#{autorBean.novoAutor}" value="Cancelar" ajax="false" />
                    </h:panelGrid>  
                </p:panel>   
            </h:form>    


        </ui:define>
    </ui:decorate>
</html>